package com.infitecs.eyas.power.dao;

import com.infitecs.eyas.power.model.Power;
import com.infitecs.krill.mybatis.annotation.mybatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Demon on 2015/4/24.
 */
@mybatisRepository
public interface PowerDao {

    boolean addPower(Power power);

    boolean addPowerCase(Power power);

    boolean addPlantCase(Power power);

    boolean addAsh(@Param("id") int id);

    boolean addBurst(@Param("id") int id);

    boolean addIndustry(@Param("id") int id);

    boolean addElemental(@Param("id") int id);

    boolean addNature(@Param("powerId") int powerId);

    List<Power> getAllPower();

    List<Power> getAllCase(@Param("id") int id);

    int getPowerByCaseId(@Param("caseId") int caseId);

    int countPowerByName(Power power);

    int countPowerByCase(Power power);

    int countPowerCaseName(Power power);

    List<Power> getPowerListPage(Power power);

    int delPowerCase(String caseId);

    String getUserIds(String caseId);

    boolean updateShare(Power power);

    void editCaseName(Power power);

    void editPlantName(Power power);

    Power getCaseById(@Param("caseId") String caseId);
}
